package com.example.stu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.stu.entity.PageMessage;
import com.example.stu.pojo.StuMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Date: 2021/3/22
 * @Author: 黄先军
 * @Description:
 */
@Mapper
public interface StuMessageMapper extends BaseMapper<StuMessage> {
    /**
     * 带条件查询所有留言信息
     * @return
     */
    List<StuMessage> pages(@Param("stu") PageMessage pageMessage);
    /**
     * 带分页和条件查询所有学生信息
     * @return
     */
    List<StuMessage> pages(Page<StuMessage> page, @Param("stu") PageMessage PageMessage);


}
